<template>
  <div class="page">
    <mt-header fixed title="审批历史" style="height: 0.64rem;">
      <router-link to="" slot="left">
        <mt-button icon="back" @click="$router.back(-1)">返回</mt-button>
      </router-link>
    </mt-header>
    <div class="content">
      <ul class="d-ul-box">

        <li class="d-li-box" v-for="(detail,index) in auditHistoryList" :key="index">
          <!--<li class="d-li-box">-->

          <div class="d-list-box">

            <div class="d-list-line">
              <div class="section-left">
                <label>审批人</label><span class="right-value bottom-line">{{detail.sp_user}}</span>
              </div>
              <div class="section-right">
                <label>审批结果</label><span class="right-value bottom-line">{{detail.sp_opinion}}</span>
              </div>
            </div>
            <div class="d-list-line">
              <div class="line-left">审批日期</div>
              <div class="line-right bottom-line">{{detail.sp_date}}</div>
            </div>
            <div class="d-list-line">
              <div class="line-left">审批意见</div>
              <div class="line-right bottom-line">{{detail.sp_memo}}</div>
            </div>

          </div><!-- d-list-box -->


        </li>

      </ul>
    </div>

  </div>
</template>

<script>

  export default {
    name: 'page-navbar',
    data() {
      return {
        selected: '1',
        auditHistoryList: []
      }
    },
    computed: {},
    methods: {},
    mounted() {
      //获取路由参数
      let params = this.$route.params;
      this.auditHistoryList = params;
    }
  }

</script>

<style scoped>
  /*背景*/
  #listInfo {
    background-color: #ebebeb;
  }

  .content {
    margin-top: 0.64rem;
    height: auto;
    background: #ebebeb;
  }

  .d-ul-box {
  }

  .d-li-box {
    font-size: 0.13rem;
    color: #363636;
    background: #fff;
    margin-bottom: 0.08rem;
  }

  .d-list-box {
  }

  .d-list-line {
    display: flex;
    height: 0.30rem;
    line-height: 0.30rem;
    padding-right: 0.04rem;
  }

  .line-left {
    width: 0.78rem;
    padding-left: 0.15rem;
  }

  .line-right {
    flex: 1;
    padding-left: 0.05rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .section-left {
    flex: 1;
    padding-left: 0.15rem;
  }

  .section-right {
    flex: 1;
  }

  .d-list-line .line-right {
  }

  .d-list-line .line-left {
  }

  .section-left label, .section-right label {
  }

  .section-left span, .section-right span {
    margin-left: 0.15rem;
    padding-left: 0.05rem;
    width: 1rem;
    display: inline-block;
  }

  .left-label {
  }

  .right-value {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
  }

  .bottom-line {
    border-bottom: 1px solid #ececec;
  }


</style>

